﻿
using CarAppDomain.Rule.Entities;
using CarAppDto.Rule.RuleConfigDtos;
using D.UtilSqlsugarOrm;

namespace CarAppDomain.Rule.IRepositories
{
    /// <summary>
    /// 规则组成参数接口
    /// </summary>
    public interface IRuleConfigEntityRepository : IBaseRepository<RuleConfigEntity>
    {
        Task<List<RepRuleConfig>> GetRuleConfigByVINAsync(string VIN);

        Task<List<RepRuleConfig>> GetListAsync(System.Linq.Expressions.Expression<Func<RuleConfigEntity, bool>> where = null, System.Linq.Expressions.Expression<Func<RuleConfigEntity, object>> order = null);

        Task<PageModel<RepRuleConfig>> GetOrderPagesAsync(int pageSize, int current, System.Linq.Expressions.Expression<Func<RuleConfigEntity, bool>> where, System.Linq.Expressions.Expression<Func<RuleConfigEntity, object>> order = null, bool OrderByAsc = true);


    }
}
